package com.junlinpro.utils;

import java.net.URI;

public class Constant {

    public static final int CMD_CARD_REGISTER = 1;
    public static final int CMD_AUDIO_DATA = 2;
    public static final int CMD_START_REALTIME = 3;
    public static final int CMD_STOP_REALTIME = 4;
    public static final int CMD_HEART_BEAT = 5;
    public static final int CMD_AUDIO_DATA_END = 6;
    public static final int CMD_FRONT_ALARM = 7;
    public static final int CMD_FRONT_ALARM_END = 8;

    public static final int CMD_CARD_REGISTER_RTN = 11; // 注册回复
    public static final int CMD_START_REALTIME_RTN = 12; // 实时监听开始回复
    public static final int CMD_STOP_REALTIME_RTN = 13; // 实时监听结束回复

    public static final int TIME_INTERVAL_RESPONSE = 17;//收到时间间隔回复 Connect
    public static final int CMD_CONNECT = 18;// 连接命令

    public static final int OPUS_DATA_SCALER = 2;

    public static final int OPUS_FRAME_SIZE_IN_MS = 40;

    public static final int AUDIO_SAMPLE_RATE = 16000;
    public static final int AUDIO_CHANNEL_NUM = 1;

    public static final int OPUS_DECODER_SHORT_BUFFER_SIZE = AUDIO_SAMPLE_RATE * AUDIO_CHANNEL_NUM * OPUS_FRAME_SIZE_IN_MS * OPUS_DATA_SCALER / 1000 / 2;

    public static final int OPUS_FRAME_SUM = 250;

    public static final String HARDWARE_VERSION = "1.0";

    public static final String WAV_URL = "/mnt/AudioWav/monitorFile/wav/";

    public static final Integer TIMING_MIN_FRAMENUMER = 238;
    public static final Integer ALARM_MIN_FRAMENUMER = 71;
    //用于实时监听  20分钟=15000帧   10分钟=7500帧
    public static final int REALTIME_FRAME_SUM = 7500;
 
    public static final String REGISTER_QUERY_URL = "http://10.1.52.1:9020/api/system/third/cardRegisterQuery/";
	public static final String REGISTER_URL       = "http://10.1.52.1:9020/api/system/third/cardRegister/";
	

}
